package com.itqian.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author shishuqian
 * date 2022/4/11
 * time 15:05
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class AnnComment implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime date;

    /**
     * 公告id
     */
    private Integer ownerId;

    /**
     * 评论者id
     */
    private Integer fromId;

    /**
     * 评论者昵称
     */
    private String fromName;

    /**
     * 评论者头像
     */
    private String fromAvatar;

    /**
     * 评论内容
     */
    private String content;

}
